home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoBench / Includes / CImage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-23  |  804 b   |  43 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CImage.h
  3.  *
  4.  *    Persistent blob class.
  5.  *
  6.  ****/
  7.  
  8. #pragma once            /* Include this file only once */
  9. #include <time.h>
  10. #include "CCluster.h"
  11. #include "CNeoBlob.h"
  12.  
  13. #define kImageID        9
  14.  
  15. enum FilmT {
  16.     eTriX,
  17.     ePanX,
  18.     eUnknown
  19. };
  20. typedef enum FilmT Film;
  21.  
  22. class CImage : public CNeoBlob {
  23. public:
  24.                         /** Instance Methods **/
  25.     static CNeoPersist *New(void);
  26.     virtual long        doUntilSubclass(NeoTestFunc1 aFunc, long aParam);
  27.     virtual void        readObject(const long aMark, CNeoPersist *aParent, const NeoID aID);
  28.     virtual void        writeObject(const long aLength);
  29.  
  30.                         /** Object List Methods **/
  31.     virtual NeoID        getClassID(void);
  32.  
  33.                         /** Rendering Methods **/
  34.     virtual void        draw(Rect *aRect);
  35.  
  36. protected:
  37.                         /** Instance Variables **/
  38.     Str32                fPhotographer;
  39.     time_t                fDate;
  40.     Film                fFilm;
  41. };
  42.  
  43.